<template>
  <div class="flex-col">
    <van-button type="primary" size="small" @click="goExample">跳转到详情 {{msg}}</van-button>
  </div>
</template>

<script setup>
import {useRouter} from "vue-router";

defineProps({
  msg: String
})
const router = useRouter()


const goExample =() => {
  router.push('/detail')
}


</script>

<style scoped lang="scss">

</style>
